namespace LogText.EF
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class LogTestModel : DbContext
    {
        public LogTestModel()
            : base("name=LogTestModels")
        {
        }

        public virtual DbSet<Log> Log { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Log>()
                .Property(e => e.Thread)
                .IsUnicode(false);

            modelBuilder.Entity<Log>()
                .Property(e => e.Level)
                .IsUnicode(false);

            modelBuilder.Entity<Log>()
                .Property(e => e.Logger)
                .IsUnicode(false);

            modelBuilder.Entity<Log>()
                .Property(e => e.Message)
                .IsUnicode(false);

            modelBuilder.Entity<Log>()
                .Property(e => e.Operand)
                .IsUnicode(false);

            modelBuilder.Entity<Log>()
                .Property(e => e.IP)
                .IsUnicode(false);

            modelBuilder.Entity<Log>()
                .Property(e => e.MachineName)
                .IsUnicode(false);

            modelBuilder.Entity<Log>()
                .Property(e => e.Browser)
                .IsUnicode(false);

            modelBuilder.Entity<Log>()
                .Property(e => e.Location)
                .IsUnicode(false);

            modelBuilder.Entity<Log>()
                .Property(e => e.Exception)
                .IsUnicode(false);
        }
    }
}
